package com.springboot.log;

import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;

@Aspect
public class AppCtxAspectJ {
    //@Around("execution(* org.springframework.context.ApplicationContext.publishEvent(..))")
    //@Around("execution(* org.springframework.context.ApplicationEventPublisher.publishEvent(..))")
    @Around("execution(* org.springframework.context.support.AbstractApplicationContext.publishEvent(..))")
    public void around() {
        System.out.println("---------");
    }
}
